package com.simple.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.simple.entity.SysUserLog;
import com.simple.service.SysUserLogService;
import com.simple.utils.TableUtils;

/**
 * 用户登录信息
 */
@Controller
@RequestMapping("/user")
public class SysUserLogController {
	
	@Autowired
	SysUserLogService sysUserLogService;
	
	@RequestMapping("/sysUserLog.html")
	public String sysUserLog() {
		return "sysUserLog";
	}
	
	@RequestMapping("/sysUserLog/list.html")
	@ResponseBody
	public JSONObject sysUserLogList(Integer page,Integer limit) {
		Page<SysUserLog> logPageList=sysUserLogService.findAll(page,limit);
		return TableUtils.tablePageResult(logPageList);
	}

}
